package com.wxtwxt.ruralmall.auth.feign;

import com.wxtwxt.ruralmall.auth.vo.UserLoginVo;
import com.wxtwxt.ruralmall.auth.vo.UserRegisterVo;
import com.wxtwxt.ruralmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Wxt
 * @create 2023-04-22 22:00
 */
@FeignClient("ruralmall-member")
public interface MemberFeign {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo userRegisterVo);
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo userLoginVo);
    @PostMapping("/member/member/loginWithThreeParty")
    R login(@RequestParam("json") String json);
}
